package com.wis.traffic.post.service.impl;

import com.wis.traffic.entity.base.BaseDAO;
import com.wis.traffic.entity.dao.DataTimes;
import com.wis.traffic.post.base.PostBaseDAOImpl;
import com.wis.traffic.post.service.DataTimesService;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class DataTimesServiceImpl implements DataTimesService {
    private String nameSpace = DataTimes.class.getName();
    private BaseDAO<DataTimes, Serializable> baseDao = new PostBaseDAOImpl<>();
    @Override
    public List<Object> getUpdatedTime(Map<String, Object> paramsMap) {
        return baseDao.getObject(nameSpace,"getUpdatedTime",paramsMap);
    }

    @Override
    public Integer insertOrUpdate(DataTimes dataTimes) {
        return baseDao.update(nameSpace,dataTimes);
    }
}
